import 'package:flutter/material.dart';

import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:vegeshop/widgets/login/index.dart';

//import 'package:splashscreen/splashscreen.dart';
void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'BSTrobot',
      localizationsDelegates: [
        //此处
        GlobalMaterialLocalizations.delegate,
        GlobalWidgetsLocalizations.delegate,
        GlobalCupertinoLocalizations.delegate,     
      ],
      supportedLocales: [
        const Locale('zh', 'CH'),
//        const Locale('en', 'US'),
      ],
      theme: new ThemeData(
        fontFamily: "SimSun",        
        primarySwatch: Colors.blue,
        pageTransitionsTheme: new PageTransitionsTheme(builders: const {
          TargetPlatform.android: CupertinoPageTransitionsBuilder(),
          TargetPlatform.iOS: CupertinoPageTransitionsBuilder(),
        }),
        scaffoldBackgroundColor: new Color(0xFFEBEBEB),
      ),

//    routes: <String, WidgetBuilder>{
//      "/home": (BuildContext context) => new MyHomePage(),
//    },
      home: new LoginPage(),
    );
  }
}
